<%-- 
    Document   : navigat
    Created on : 2009-8-10, 22:16:47
    Author     : Administrator
--%>

<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="checklogin.jsp"%>
<%@page import="btsm.bean.sysPro"%>
<%
			{
				sysPro sPro = new sysPro();
				String strOrgName = sPro.getOrgName();			
%>	
<html>
    <head>
	<script   language="JavaScript">
		window.self.focus();    
		moveTo(0,0);    
	</script>		
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><%=strOrgName%></title>
		<link href='Admin_Style.css' rel='stylesheet' type='text/css'>		
    </head>
<%
			}
%>

<script>
 var winHeight = screen.availHeight - 30;
 var frmHeight = winHeight - 60;
 var frmWidthMain = screen.availWidth - 10 - 150;

function logoutExit(){
    var url = "check_user?"
        + createQueryString("serlogout") + "&ts=" + new Date().getTime();
 
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleLogout;
    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}

function SetFrmWinSize(obj)
{
  var frmWin=obj;
  if (document.getElementById)
  {
    if (frmWin && !window.opera)
    {
        frmWin.height = frmHeight;
		frmWin.width = frmWidthMain;
    }
  }
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
function updateOnlineUN(){


    var properties = xmlHttp.responseXML.getElementsByTagName("property");
    var property = null;
	var OnlineUN = "0";
			
    for(var i = 0; i < properties.length; i++) {
        property = properties[i];
        OnlineUN = property.getElementsByTagName("onlineun")[0].firstChild.nodeValue;
    }
	document.getElementById("divOnlUN").innerHTML = OnlineUN + " 人";

}
window.setTimeout(refreshOnlieUNum,3000);
window.setInterval(refreshOnlieUNum,300000);//定时器
//-->

function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}

function refreshOnlieUNum() {

    var url = "check_user?"
        + createQueryString("seronlUN") + "&ts=" + new Date().getTime();
 
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}

function createQueryString(strOnlineUN) {

    var queryString = "seraction=" + strOnlineUN;
    return queryString;

}
 
function handleStateChange() {

    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            updateOnlineUN();
        }
    }
}

function handleLogout() {

}
</script>

<body style="overflow:hidden" onUnload="logoutExit()">
<table width="100%">
	<tr>
	<td colspan="2" height="70" width="100%" valign="top" background="images/admin_logo.jpg">
<%@ include file="topmenuSys.jsp" %>
	</td>
	</tr>
	<tr>
	<td>
		<iframe id="frmMSB" style="width:0; height:0; display:block; overflow:hidden">
		<iframe name="ifrmleftmenu" id="ifrmleftmenu" width="152px" height="636px" src="leftmenuSys.jsp" style="overflow:hidden; border:0;">
		</iframe>
		</iframe>
	</td>
	<td valign="top">
		<iframe id="frmMMain" style="width:0; height:0; display:block; overflow:hidden">
		<iframe name="ifrmmain" id="ifrmmain" onload="Javascript:SetFrmWinSize(this)" src="nnlist_users.jsp" style="overflow:hidden; border:0;">
		</iframe>
		</iframe>
	</td>
	</tr>
</table>

<div id="onlineUser" style="position:absolute; left:850px; top:50px; width:50px;">

<table width="120" align="center" border="0" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
  <tr>
    <td width="70">在线用户：</td><td height="20" align="center"><div id="divOnlUN"></div></td>
  </tr>
</table>

</div>

</body>


